package yhao.demo.autocode.core.sqlmapper.connect;

public class DbConnectParam {
    //数据库类型
    private DbType dbType;
    //用户名
    private String username;
    //密码
    private String password;
    //链接地址
    private String url;

    /**
     * @param dbType       数据库类型
     * @param username     数据库用户名
     * @param password     数据库密码
     * @param url          数据库连接
     */
    public DbConnectParam(DbType dbType, String url, String username, String password) {
        this.dbType = dbType;
        this.url = url;
        this.username = username;
        this.password = password;
    }

    public DbType getDbType() {
        return dbType;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getUrl() {
        return url;
    }

    @Override
    public String toString() {
        return "数据库连接{" +
                "dbType=" + dbType +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
